package com.rboat.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rboat.common.annotation.Excel;
import com.rboat.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 相册对象 blog_photo
 * 
 * @author rboat
 * @date 2019-11-05
 */
public class BlogPhoto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 图片存放地址 */
    @Excel(name = "图片存放地址")
    private String photoAddr;

    /** 上传日期 */
    @Excel(name = "上传日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date photoAddTime;

    /** 图片备注 */
    @Excel(name = "图片备注")
    private String photoInfo;

    /** 上传人(博主) */
    @Excel(name = "上传人(博主)")
    private String photoMasterId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setPhotoAddr(String photoAddr) 
    {
        this.photoAddr = photoAddr;
    }

    public String getPhotoAddr() 
    {
        return photoAddr;
    }
    public void setPhotoAddTime(Date photoAddTime) 
    {
        this.photoAddTime = photoAddTime;
    }

    public Date getPhotoAddTime() 
    {
        return photoAddTime;
    }
    public void setPhotoInfo(String photoInfo) 
    {
        this.photoInfo = photoInfo;
    }

    public String getPhotoInfo() 
    {
        return photoInfo;
    }
    public void setPhotoMasterId(String photoMasterId) 
    {
        this.photoMasterId = photoMasterId;
    }

    public String getPhotoMasterId() 
    {
        return photoMasterId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("photoAddr", getPhotoAddr())
            .append("photoAddTime", getPhotoAddTime())
            .append("photoInfo", getPhotoInfo())
            .append("photoMasterId", getPhotoMasterId())
            .toString();
    }
}
